package com.yonyou.crm.sact.visitroute.rmimpl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yonyou.crm.common.page.entity.Page;
import com.yonyou.crm.sact.visitroute.entity.VisitrouteVO;
import com.yonyou.crm.sact.visitroute.rmitf.IVisitrouteRmService;
import com.yonyou.crm.sact.visitroute.service.VisitrouteBizServiceImpl;


@Service("visitrouteService")
public class VisitrouteRmServiceImpl implements IVisitrouteRmService {
	
	@Autowired
	private VisitrouteBizServiceImpl bizService;
	
	@Override
	public Page<VisitrouteVO> getList(Page<VisitrouteVO> page, Map<String, Object> paraMap) {
		return bizService.getList(page, paraMap);
	}

	@Override
	public VisitrouteVO insert(VisitrouteVO vo) {
		return bizService.save(vo);
	}

	@Override
	public VisitrouteVO update(VisitrouteVO vo) {
		return bizService.update(vo);
	}

	@Override
	public Page<VisitrouteVO> batchDelete(String[] ids, Page<VisitrouteVO> page, Map<String, Object> paraMap) {
		bizService.batchDelete(ids);
		return bizService.getList(page, paraMap);
	}

}
